Skip to main content

Tracking Pages

Nudge tracks views on a per-screen basis. To send the tracked views to Nudge's Dashboard, follow these steps:

Connecting Your App

Update AppDelegate.swift

To enable Screenshot Mode, update your AppDelegate.swift with the following snippet:

func application(_ app: UIApplication,  open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {

handleUrl(url)
return true
}

private func handleUrl(_ url: URL) {
initAlong(url: url)
}

You will also need to add the following snippet in your SceneDelegate.swift to let the deeplink interception pass through

func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {

guard let url = URLContexts.first?.url else { return }

print("SceneDelegate intercepted deep link: \(url.absoluteString)")

// Forward the deep link to AppDelegate
if let appDelegate = UIApplication.shared.delegate as? AppDelegate {
_ = appDelegate.application(UIApplication.shared, open: url, options: [:])
}
}

Now, you need to {APP_SCHEME_ID} to your app in order to open the deeplink in your app in the screenshot mode.

App View
note

Replace nudge-d125... with your App Scheme ID Example : nudge-{APP_SCHEME_ID}

Capturing Screens

  1. Open the Nudge Dashboard and go to the Pages section in the sidebar.
Nudge Pages
  1. Click + New Page . A popup window will appear.

  2. In the popup, you’ll see your App Scheme Id. Add this {APP_SCHEME_ID} in your app.

Nudge Add Pages
  1. Scan the QR code shown in the popup using a mobile device that already has your app installed (with the updated manifest).

  2. Open the generated URL, then tap “Launch App” to start your app in Screenshot Mode.

Nudge Add Pages
  1. In your app, you’ll see the Nudge logo at the top-left corner. Tap it to open a popup, then:
  • Enter a name for the screen you want to capture.
  • Tap “Save.” This sends all visible views to the Nudge Dashboard.
App ViewApp View
  1. Go back to the Nudge Dashboard in the Pages section and refresh. You’ll see your new screen and its tracked views.
Nudge Add Pages

That’s it! You can repeat this process to capture any screen in your app and manage them in the Nudge Dashboard.